package com.cloud.shopping.pay.service;

import com.cloud.shopping.pay.model.PayLog;

import java.util.Map;

/**
 * @author John.Zhang
 * @version Id: WeChatPayService, v 0.1 2021/1/6 14:30 ZhiYong Exp $
 */
public interface WeChatPayService {
    /**
     * 退款申请操作
     *
     * @param dataMap dataMap
     * @return Map
     * @throws Exception
     */
    Map<String, String> refund(Map<String, String> dataMap) throws Exception;

    /**
     * 获取支付地址
     *
     * @param dataMap dataMap
     * @return Map
     * @throws Exception
     */
    Map<String, String> preOrder(Map<String, String> dataMap) throws Exception;

    /**
     * 主动查询支付结果
     * @param outNo 订单编号
     * @return PayLog
     * @throws Exception
     */
    PayLog result(String outNo) throws Exception;
}
